package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 楼栋管理对象 config_building
 * 
 * @author YuKunXu
 * @date 2024-02-27
 */
public class ConfigBuilding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 楼栋编号 */
    @Excel(name = "楼栋编号")
    @TableId
    private Long id;

    /** 商业区编号 */
    @Excel(name = "商业区编号")
    private Long block;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private String name;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic(delval="2")
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBlock(Long block) 
    {
        this.block = block;
    }

    public Long getBlock() 
    {
        return block;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("block", getBlock())
            .append("name", getName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
